﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<ChoViet.Site.ViewModels.GetNewsByCatViewModel>" %>
<div style="vertical-align: middle">
    <img src="/images/pvoil/icon.gif" style="vertical-align: middle" />&nbsp;<span class="tit"><a href="/article/index/<%=Model.ArticleCategory.ID%>"><%=Model.ArticleCategory.Name%></a></span>
</div>
<div class="news_bottom">
    <div class="bg_gra"></div>
    <div class="new_bottom_left">
        <div class="new_bottom_left_title">
            <h3>
                <a class="gr" href="/article/details/<%=Html.Encode(Model.Articles[0].ID)%>"><%=Html.Encode(Model.Articles[0].Title.ToString()) %></a></h3>
        </div>
        <div class="new_bottom_left_img">
            <a href="/article/details/<%=Html.Encode(Model.Articles[0].ID)%>">
                <img class="bor_img" height="142" width="210" alt="" title=""
                    src="<%=Html.Encode(Model.Articles[0].ImagePath)%>"> 
            </a>
        </div>
        <div class="new_bottom_left_txt">
            <%=Html.Encode(Model.Articles[0].Summary.ToString())%>
        </div>
    </div>
    <div class="new_bottom_right">
        <ul>
            <%for (int i = 1; i < Model.Articles.Count(); i++)
              {%>
                <li><a href="/article/details/<%=Html.Encode(Model.Articles[0].ID)%>"><%=Html.Encode(Model.Articles[i].Title) %></a> </li>
              <%} %>
        </ul>
    </div>
</div>
